package example.pattern.bridge;

/**
 * Abstraction
 * 
 * @author Administrator
 *
 */
public class Display extends AbstractDisplay{
	DisplayImplementor implementor;
	
	
	public Display(DisplayImplementor implementor) {
		this.implementor = implementor;
	}
	
	@Override
	public void display() {
		open();
		print();
		close();
	}
	
	public void open(){
		implementor.printHeader();
	}
	
	public void print(){
		implementor.printContent();
	}
	
	public void close(){
		implementor.printFooter();
	}

}
